#ifndef XML_CORE_H
#define XML_CORE_H

#include <QObject>
#include <qstring.h>
#include <qxmlstream.h>
#include <qfile.h>



class xml_core:public QObject
{ Q_OBJECT
public:
     explicit xml_core();
     xml_core(QString pathname,QObject *parent = 0);

    QString pathname;
    QXmlStreamReader xmlreader;
    QXmlStreamWriter xmlwriter;
    QFile xmldoc;
    void readxml();
    int count;
    int stringtoint(QString str);

struct list_table
{
    QString list_name;
    QString list_value;
}LIST[50];

  int indexof(QString str);
  QString value(QString str);
  void write(QString name,QString str);
  void save();
private:
  bool  write_changed;
};

#endif // XML_CORE_H
